package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineStudentCourseChange = "online_student_course_change"

func init() {
	var r = &OnlineStudentCourseChange{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineStudentCourseChange struct {
	CourseChangeId int    `primary:"true" modify:"false" json:"courseChangeId" form:"courseChangeId" column:"course_change_id"`
	StudentId      int    `json:"studentId" form:"studentId" column:"student_id" modify:"true"`
	TermId         int    `form:"termId" column:"term_id" modify:"true" json:"termId"`
	CourseId       int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	FromClassId    int    `json:"fromClassId" form:"fromClassId" column:"from_class_id" modify:"true"`
	ToClassId      int    `json:"toClassId" form:"toClassId" column:"to_class_id" modify:"true"`
	Status         int    `json:"status" form:"status" column:"status" modify:"true"`
	CreateTime     string `form:"createTime" column:"create_time" modify:"false" json:"createTime"`
	UpdateTime     string `form:"updateTime" column:"update_time" modify:"false" json:"updateTime"`
}

func (r *OnlineStudentCourseChange) Name() string {
	return RecordNameOnlineStudentCourseChange
}
